package com.ctg.itrdc.imageconsole.data.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.paspsdk.pub.entity.BaseEntity;

@Table(name = "docker_micro_service")
public class DockerMicroService extends BaseEntity<Long> {
	private static final long serialVersionUID = 1L;
		
	@Id
	@Column(name = "id")
	private Long id;
	
	@Column(name = "code")
	private String code;
	
	@Column(name = "docker_micro_app_id")
	private Long dockerMicroAppId;
	
	@Column(name = "docker_image_index_id")
	private Long dockerImageIndexId;
	
	@Column(name = "dp_name")
	private String dpName;

	@Column(name = "service_port")
	private String servicePort;
	
	@Column(name = "url")
	private String url;

	@Column(name = "external_port")
	private String externalPort;
	
	@Column(name = "lvs_service_name")
	private String lvsServiceName;
	
	@Column(name = "yaml_content")
	private String yamlContent;
	
	@Column(name = "replicas")
	private Integer replicas;
	
	@Column(name = "is_autoscalable")
	private Integer isAutoscalable;
	
	@Column(name = "autoscale_policy_id")
	private Long autoscalePolicyId;
	
	@Column(name = "k8s_code")
	private String k8sCode;

	@Column(name = "state")
	private String state;
	
	@Column(name = "release_state")
	private String releaseState;
	
	@Column(name = "release_state_description")
	private String releaseStateDescription;
	
	@Column(name = "namespace")
	private String namespace;
	
	@Column(name = "tenant_code")
	private String tenantCode;

	@Column(name = "create_user_id")
	private Long createUserId;

	@Column(name = "create_time")
	private String createTime;

	@Column(name = "last_update_user_id")
	private Long lastUpdateUserId;

	@Column(name = "last_update_time")
	private String lastUpdateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getDockerMicroAppId() {
		return dockerMicroAppId;
	}

	public void setDockerMicroAppId(Long dockerMicroAppId) {
		this.dockerMicroAppId = dockerMicroAppId;
	}

	public String getDpName() {
		return dpName;
	}

	public void setDpName(String dpName) {
		this.dpName = dpName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	
	public String getExternalPort() {
		return externalPort;
	}

	public void setExternalPort(String externalPort) {
		this.externalPort = externalPort;
	}

	public String getLvsServiceName() {
		return lvsServiceName;
	}

	public void setLvsServiceName(String lvsServiceName) {
		this.lvsServiceName = lvsServiceName;
	}

	public String getYamlContent() {
		return yamlContent;
	}

	public void setYamlContent(String yamlContent) {
		this.yamlContent = yamlContent;
	}

	public Integer getIsAutoscalable() {
		return isAutoscalable;
	}

	public void setIsAutoScalable(Integer isAutoscalable) {
		this.isAutoscalable = isAutoscalable;
	}

	

	public Long getAutoscalePolicyId() {
		return autoscalePolicyId;
	}

	public void setAutoscalePolicyId(Long autoscalePolicyId) {
		this.autoscalePolicyId = autoscalePolicyId;
	}

	public String getK8sCode() {
		return k8sCode;
	}

	public void setK8sCode(String k8sCode) {
		this.k8sCode = k8sCode;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getReleaseState() {
		return releaseState;
	}

	public void setReleaseState(String releaseState) {
		this.releaseState = releaseState;
	}

	public String getReleaseStateDescription() {
		return releaseStateDescription;
	}

	public void setReleaseStateDescription(String releaseStateDescription) {
		this.releaseStateDescription = releaseStateDescription;
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getTenantCode() {
		return tenantCode;
	}

	public void setTenantCode(String tenantCode) {
		this.tenantCode = tenantCode;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Long getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(Long lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Integer getReplicas() {
		return replicas;
	}

	public void setReplicas(Integer replicas) {
		this.replicas = replicas;
	}

	public Long getDockerImageIndexId() {
		return dockerImageIndexId;
	}

	public void setDockerImageIndexId(Long dockerImageIndexId) {
		this.dockerImageIndexId = dockerImageIndexId;
	}

	public void setIsAutoscalable(Integer isAutoscalable) {
		this.isAutoscalable = isAutoscalable;
	}

	public String getServicePort() {
		return servicePort;
	}

	public void setServicePort(String servicePort) {
		this.servicePort = servicePort;
	}
	
	
	
}